Finding the Remaining Days on a Trial License
You may want to display the number of days remaining on a trial license whenever your application opens.
This section describes the prerequisites:
Include Libraries
Licensing library specific to your platform, including the dependent libraries specific to your environment.
Include Header File(s )
lserv.h
Declare Variables
unsigned char *feature_name; unsigned char *version; int index=0; VLStrialUsageInfo trial_usage_info;
API Calls
>VLSinitialize();
>trial_usage_info.structSz=sizeOf(trial_usage_info);
>VLSgetTrialUsageInfo(feature_name, version, index, trial_usage_info);
>Printf ("Trial calendar_period left :%d", trial_usage_info.cumulative_trial_calendar_period_left);
>Printf ("Trial elapsed period left :%d", trial_usage_info.cumulative_trial_elapsed_period_left);
>Printf ("Trial elapsed period left :%d", trial_usage_info.cumulative_trial_executions_left);